home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- #
- # The text of this plugin is (C) Red Hat Inc.
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(12315);
- script_version ("$Revision: 1.3 $");
- script_cve_id("CAN-2002-0655", "CAN-2002-0656");
-
- name["english"] = "RHSA-2002-157: openssl";
-
- script_name(english:name["english"]);
-
- desc["english"] = '
-
- Updated OpenSSL packages are available which fix several serious buffer
- overflow vulnerabilities.
-
- OpenSSL is a commercial-grade, full-featured, and Open Source toolkit which
- implements the Secure Sockets Layer (SSL v2/v3) and Transport Layer
- Security (TLS v1) protocols as well as a full-strength general purpose
- cryptography library. A security audit of the OpenSSL code sponsored by
- DARPA found several buffer overflows in OpenSSL which affect versions 0.9.7
- and 0.9.6d and earlier:
-
- 1. The master key supplied by a client to an SSL version 2 server could be
- oversized, causing a stack-based buffer overflow. This issue is remotely
- exploitable. Services that have SSLv2 disabled would not be vulnerable to
- this issue. (CAN-2002-0656)
-
- 2. The SSLv3 session ID supplied to a client from a malicious server could
- be oversized and overrun a buffer. This issue looks to be remotely
- exploitable. (CAN-2002-0656)
-
- 3. Various buffers used for storing ASCII representations of integers were
- too small on 64 bit platforms. This issue may be exploitable.
- (CAN-2002-0655)
-
- A further issue was found in OpenSSL 0.9.7 that does not affect versions of
- OpenSSL shipped with Red Hat Linux (CAN-2002-0657).
-
- A large number of applications within Red Hat Linux make use the OpenSSL
- library to provide SSL support. All users are therefore advised to upgrade
- to the errata OpenSSL packages, which contain patches to correct these
- vulnerabilities.
-
- NOTE:
-
- Please read the Solution section below as it contains instructions for
- making sure that all SSL-enabled processes are restarted after the update
- is applied.
-
- Thanks go to the OpenSSL team and Ben Laurie for providing patches for
- these issues.
-
-
-
-
- Solution : http://rhn.redhat.com/errata/RHSA-2002-157.html
- Risk factor : High';
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the openssl packages";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Red Hat Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
-
- script_require_keys("Host/RedHat/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"openssl-0.9.6b-24", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"openssl-devel-0.9.6b-24", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"openssl-perl-0.9.6b-24", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"openssl095a-0.9.5a-14", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
- if ( rpm_check( reference:"openssl096-0.9.6-9", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
-
- if ( rpm_exists(rpm:"openssl-", release:"RHEL2.1") )
- {
- set_kb_item(name:"CAN-2002-0655", value:TRUE);
- set_kb_item(name:"CAN-2002-0656", value:TRUE);
- }
-
- set_kb_item(name:"RHSA-2002-157", value:TRUE);
-